﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace org.compiere.util
{
    public class IPreparedCommand:IDbCommand
    {
    /**
	 * 	Get Sql
	 *	@return sql
	 */
	public String getSql();


	/**
	 * 	Execute Query
	 * 	@return ResultSet or RowSet
	 * 	@throws SQLException
	 * @see java.sql.PreparedStatement#executeQuery()
	 */
	public DataTable getRowSet();
	
	/**
	 * @return bool
	 * @throws SQLException
	 */
    public bool isClosed() ;
    
    /**
     * 
     * @throws SQLException
     */
    public void commit() ;

    /**
     * don't call this directly, invoke by finalizer thread
     * @throws Throwable
     */
	public void finalize(); 
    }
}
